package com.broadengate.bean;

import java.util.Date;

public class ContractInfo implements java.io.Serializable
{

	/**
     * 注释内容
     */
    private static final long serialVersionUID = 1L;
    private int contractid;// 合同ID
	private String po; // po编号
	private String contractNumber;// 合同编号，对于委托开发合同，合同编号和PO一致',
	private String contractName; // '合同名称',
	private float contractMoney; // 合同金额
	private Date creatDate;// '合同开始时间',
	private Date cexpirationDate;// '约定验收时间',
	private float billSumMoney;// 回款总金额',
	private float kpMoney;
	private int contractStatus;// '1：未验收 2：部分开票 3 开票 4 回款 5：部分回款 6：验收 ,
	private String orgId;

	private String contractStatusStr;
	
	   /**
     * 负责人
     */
    private String owner;
    
    /**
     * 是否匹配，已匹配 部分匹配，未匹配
     */
    private String isRelated;


	public String getContractStatusStr()
	{
		return getStatusStr(contractStatus);
	}

	public void setContractStatusStr(String contractStatusStr)
	{
		this.contractStatusStr = getStatusStr(contractStatus);
	}


	public String getOwner()
	{
		return owner;
	}

	public void setOwner(String owner)
	{
		this.owner = owner;
	}


	public int getContractid()
	{
		return contractid;
	}

	public void setContractid(int contractid)
	{
		this.contractid = contractid;
	}

	public String getPo()
	{
		return po;
	}

	public void setPo(String po)
	{
		this.po = po;
	}

	public String getContractNumber()
	{
		return contractNumber;
	}

	public void setContractNumber(String contractNumber)
	{
		this.contractNumber = contractNumber;
	}

	public String getContractName()
	{
		return contractName;
	}

	public void setContractName(String contractName)
	{
		this.contractName = contractName;
	}

	public float getContractMoney()
	{
		return contractMoney;
	}

	public void setContractMoney(float contractMoney)
	{
		this.contractMoney = contractMoney;
	}

	public Date getCreatDate()
	{
		return creatDate;
	}

	public void setCreatDate(Date creatDate)
	{
		this.creatDate = creatDate;
	}

	public Date getCexpirationDate()
	{
		return cexpirationDate;
	}

	public void setCexpirationDate(Date cexpirationDate)
	{
		this.cexpirationDate = cexpirationDate;
	}
	
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public float getBillSumMoney()
	{
		return billSumMoney;
	}

	public void setBillSumMoney(float billSumMoney)
	{
		this.billSumMoney = billSumMoney;
	}

	public int getContractStatus()
	{
		return contractStatus;
	}

	public void setContractStatus(int contractStatus)
	{
		this.contractStatus = contractStatus;
	}
	

	public float getKpMoney()
    {
        return kpMoney;
    }

    public void setKpMoney(float kpMoney)
    {
        this.kpMoney = kpMoney;
    }

    @Override
	public String toString()
	{
		// TODO Auto-generated method stub
		return getContractid() + getPo() + getContractNumber()
				+ getContractName() + getContractMoney() + getCreatDate()
				+ getCexpirationDate() + getBillSumMoney()
				+ getContractStatus();
	}

	public String getIsRelated()
    {
        return isRelated;
    }

    public void setIsRelated(String isRelated)
    {
        this.isRelated = isRelated;
    }

    public String getStatusStr(int input)
	{

		// 6：验收 1：未验收 2：部分开票 3 开票 4 回款 5 部分回款
		switch (input)
		{
			case 6:
				return "验收";
			case 1:
				return "未验收 ";
			case 2:
				return "部分开票";
			case 3:
				return "开票";
			case 4:
				return "已回款";
			case 5:
				return "部分回款";
			default:
				return " ";
		}
	}

}
